<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>

        function countDown() {
            var nowDate = new Date()
            var jiaDate = new Date("2025-10-1 00:00:00")
            var time = jiaDate - nowDate
            time = time / 1000
            var d = parseInt(time / 60 / 60 / 24)
            d = d < 10 ? "0" + d : d
            var h = parseInt(time / 60 / 60 % 24)
            h = h < 10 ? "0" + h : h
            var m = parseInt(time / 60 % 60)
            m = m < 10 ? "0" + m : m
            var s = parseInt(time  % 60)
            s = s < 10 ? "0" + s : s
            document.body.innerHTML=""
            document.write("<b>距离国庆：</b>" + d + "天" + h + "小时" + m + "分钟" + s+"秒")
        }
       setInterval(countDown,1000)

        


    </script>
</body>

</html>